
#include "Kernel.h"

#include <memory>
#include <string>

int main(int argc, char* argv[])
{
	std::string resource_dir = argv[0];
	resource_dir = resource_dir.substr(0, resource_dir.find_last_of("\\"));
	resource_dir = resource_dir.substr(0, resource_dir.find_last_of("\\"));
	resource_dir += "\\resources\\";

	auto kernel = Kernel::getSingleton();
	kernel->config(resource_dir);
	if(kernel->init(argc,argv))
		kernel->run();
	kernel.reset();
	return 0;
}

